import service from "@/http/index";

const { VEBPACK_API_URL } = process.env;
console.log(import.meta, process.env, 'VEBPACK_API_URL==========');

/**
 * 登录
 */

// export function musicLogin(data: any) {
//   console.log(data, '参数登录--==========');
//   return service.post(VEBPACK_API_URL + '/login/cellphone', data)
// }


/**
 *二维码获取Key
 */

export function getQRCode() {
  return service.get('http://localhost:5050/api/login/qr/key')
}

/**
 * 使用key获取二维码图片 base64 编码
 */

export function qrCodeCreate(data) {
  return service.get(`http://localhost:5050/api/login/qr/create?key=${data.key}&qrimg=${data.qrimg}`)
}